import request from '@/utils/request'
import post from "../../views/system/post/index.vue";
// 查询全部数据
export function selectAll() {
  return request({
    url: 'work/selectAll',
    method: 'get',

  })
}
// 新增作品
export function addWork(data) {
  return request({
    url: 'work/addWork',
    method: 'post',
    data: data

  })
}
// 新增作品
export function editWork(data) {
  return request({
    url: 'work/editWork',
    method: 'put',
    data: data

  })
}
// 新增作品
export function deleteWork(workId) {
  return request({
    url: 'work/deleteWork/'+workId,
    method: 'delete',

  })
}
//条件查询作品
export function selectData(work) {
  return request({
    url: 'work/selectData/',
    method: 'get',
    params: work,

  })
}

